package sudroid;

import java.lang.reflect.Array;

public class HashCodeBuilder
{
  private int result = 17;

  public HashCodeBuilder append(byte paramByte)
  {
    int i = this.result * 37 + paramByte;
    this.result = i;
    return this;
  }

  public HashCodeBuilder append(char paramChar)
  {
    int i = this.result * 37 + paramChar;
    this.result = i;
    return this;
  }

  public HashCodeBuilder append(double paramDouble)
  {
    long l = Double.doubleToLongBits(paramDouble);
    HashCodeBuilder localHashCodeBuilder = append(l);
    return this;
  }

  public HashCodeBuilder append(float paramFloat)
  {
    int i = this.result * 37;
    int j = Float.floatToIntBits(paramFloat);
    int k = i + j;
    this.result = k;
    return this;
  }

  public HashCodeBuilder append(int paramInt)
  {
    int i = this.result * 37 + paramInt;
    this.result = i;
    return this;
  }

  public HashCodeBuilder append(long paramLong)
  {
    int i = this.result * 37;
    int j = (int)(paramLong >>> 32 ^ paramLong);
    int k = i + j;
    this.result = k;
    return this;
  }

  public HashCodeBuilder append(Object paramObject)
  {
    int i;
    if (paramObject != null)
    {
      if (!paramObject.getClass().isArray())
        break label48;
      i = Array.getLength(paramObject) - 1;
      if (i >= 0)
        break label27;
    }
    while (true)
    {
      return this;
      label27: Object localObject = Array.get(paramObject, i);
      HashCodeBuilder localHashCodeBuilder1 = append(localObject);
      i += -1;
      break;
      label48: int j = paramObject.hashCode();
      HashCodeBuilder localHashCodeBuilder2 = append(j);
    }
  }

  public HashCodeBuilder append(short paramShort)
  {
    int i = this.result * 37 + paramShort;
    this.result = i;
    return this;
  }

  public HashCodeBuilder append(boolean paramBoolean)
  {
    int i = this.result * 37;
    if (paramBoolean);
    for (int j = 1; ; j = 0)
    {
      int k = i + j;
      this.result = k;
      return this;
    }
  }

  public int hashCode()
  {
    return this.result;
  }

  public int toHashCode()
  {
    return this.result;
  }

  public String toString()
  {
    return String.valueOf(this.result);
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.HashCodeBuilder
 * JD-Core Version:    0.6.0
 */